Creating a Convention
Description
To create a new convention in the Model Tree:
Select the position in a Declaration Section where the new convention should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>
key)In the dialog box select
Convention and press OK
Enter a name for the new convention
Press
<Enter>
to create the new (or press<Esc>
to abort the operation)
The newly created convention is now ready for use, but you probably want to specify some additional attributes. To modify the attributes of the newly created convention:
Press
<Enter>
or double click on the convention.
The most commonly used attributes of a convention are discussed below.
PER QUANTITY
: ThePER QUANTITY
attribute should be used to override the unit of all identifiers that express a value of a particular quantity. For example, if thePER QUANTITY
attribute contains a line'SI_LENGTH : inch
‘, all identifiers that are expressing a length (and were expressed in terms of[m]
,[cm]
,[mile]
, etc.), will be expressed in[inch]
.PER UNIT
: ThePER UNIT
attribute should be used to override the unit of all identifiers that share a particularUNIT
attribute. For example, if thePER UNIT
attribute contains a line ‘m : cm
‘, all identifiers that are originally measured in[m]
will be expressed in[cm]
, and all identifiers that are originally measured in[m/s]
are expressed in[cm/s]
etc.PER IDENTIFIER
: ThePER IDENTIFIER
attribute should be used to override the unit of a particular identifier. By applying the convention. For example, if thePER IDENTIFIER
attribute contains a line ‘Size : m
‘, the identifier ‘Size
‘ will be expressed in terms of[m]
(assumed that its originalUNIT
attribute was commensurate with[m]
).
How to …
Learn more about